package com.dk.service.Impl;

import com.dk.mapper.GradeMapper;
import com.dk.pojo.Grade;
import com.dk.pojo.GradeUser;
import com.dk.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("gradeService")
public class GradeServiceImpl implements GradeService {
    @Autowired
    private GradeMapper mapper;
    @Override
    public List<Grade> Find(String user) {
        return mapper.Find(user);
    }

    @Override
    public List<Grade> FindAll() {
        return mapper.FindAll();
    }

    @Override
    public void Add(String suser, String grade, String classcard) {
        mapper.Add(suser, grade, classcard);
    }

    @Override
    public void Dele(GradeUser gradeUser) {
        mapper.Dele(gradeUser);
    }

    @Override
    public List<Grade> UserFind(String name) {
        return mapper.UserFind(name);
    }

    @Override
    public void Xg(GradeUser gradeUser) {
        mapper.Xg(gradeUser);
    }
}
